<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>你不知道的border-radius</title>
        <style>
            .box{
                width: 200px;
                height: 200px;
                background-color: pink;
            }
            .bdrd-20{
                border-radius: 20px;
            }
            .bdrd-100{
                border-radius: 100px;
            }
            .rect-circle{
                height: 100px;
                border-radius: 50px;
            }
            .rect-circle1{
                border-top-left-radius:60px;
                border-top-right-radius:40px;
                border-bottom-left-radius:20px;
                border-bottom-right-radius:10px;
            }
            .circle-half{
                height:100px;
                border-radius:100px 100px 0 0;
            }
            .circle-quarter{
                border-radius:200px 0 0 0;
            }
            .circle-special{
                border-radius:50px/30px;
            }
            .ellipse{
                width: 300px;
                border-radius: 150px/100px;
            }
            .ellipse-half{
                height: 100px;
                border-radius: 200px 0 0 200px / 50px 0 0 50px;
            }
            .ellipse-quarter{
                height:100px;
                border-radius: 200px 0 0 0 / 100px 0 0 0;
            }
            .egg{
                width:100px;
                border-radius:50px 50px 50px 50px/150px 150px 50px 50px;
            }
            .leaf{
                border-radius:200px 0 200px 0;
            }
            .leaf-special{
                border-radius:200px 50px 50px 50px;
            }
            .seed{
                border-radius:200px 50px 200px 50px;
            }
            .box-love{
              display: flex;
              justify-content: center;
              align-items: center;
              height: 400px;
            }
            .box1{
              width: 100px;
              height: 170px;
              background-color: pink;
              border-radius: 50px 50px 0px 0;
              transform-origin: 50px 50px;
              transform: rotate(-45deg);
            }
            .box2{
              width: 100px;
              height: 170px;
              background-color: purple;
              border-radius: 50px 50px 0px 0;
              transform-origin: 50px 50px;
              transform: rotate(45deg);
            }
        </style>
    </head>
    <body>
        <h2>常见圆角样式</h2>
        <div class="box bdrd-20"></div>
        <h2>画一个标准圆</h2>
        <div class="box bdrd-100"></div>
        <h2>对话框</h2>
        <div class="box rect-circle"></div>
        <h2>不规则圆角</h2>
        <div class="box rect-circle1"></div>
        <h2>半圆</h2>
        <div class="box circle-half"></div>
        <h2>四分之一圆</h2>
        <div class="box circle-quarter"></div>
        <h2>垂直水平半径不相等的圆角</h2>
        <div class="box circle-special"></div>
        <h2>椭圆</h2>
        <div class="box ellipse"></div>
        <h2>半个椭圆</h2>
        <div class="box ellipse-half"></div>
        <h2>四分之一个椭圆</h2>
        <div class="box ellipse-quarter"></div>
        <h2>画一个鸡蛋</h2>
        <div class="box egg"></div>
        <h2>画一片树叶</h2>
        <div class="box leaf"></div>
        <h2>画一片树叶-特殊</h2>
        <div class="box leaf-special"></div>
        <h2>画一个种子</h2>
        <div class="box seed"></div>
        <h2>画一个爱心</h2>
        <div class="box-love">
            <div class="box1"></div>
            <div class="box2"></div>
        </div>
    </body>
</html>